home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmReview
- AutoRedraw = -1 'True
- BorderStyle = 1 'Fixed Single
- Caption = "Review"
- ClientHeight = 6885
- ClientLeft = 270
- ClientTop = 330
- ClientWidth = 9525
- ControlBox = 0 'False
- Height = 7290
- Left = 210
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 6885
- ScaleWidth = 9525
- Top = -15
- Width = 9645
- Begin MaskEdBox mskNo
- Height = 375
- Left = 600
- Mask = "###"
- MaxLength = 3
- PromptChar = "_"
- TabIndex = 0
- Top = 5880
- Width = 975
- End
- Begin CommandButton cmdGoto
- Caption = "&Goto"
- Height = 495
- Left = 2040
- TabIndex = 4
- Top = 5760
- Width = 1695
- End
- Begin CommandButton cmdMark
- Caption = "Review &Marked Questions"
- Height = 495
- Left = 4800
- TabIndex = 2
- Top = 5760
- Width = 2415
- End
- Begin CommandButton cmdEnd
- Caption = "&End Test"
- Height = 495
- Left = 7920
- TabIndex = 1
- Top = 5760
- Width = 1215
- End
- Begin Label lblNo
- Caption = "Review Question No."
- Height = 495
- Left = 600
- TabIndex = 3
- Top = 5280
- Width = 1215
- End
- Begin Line Line1
- X1 = 0
- X2 = 9480
- Y1 = 5040
- Y2 = 5040
- End
- Option Explicit
- Sub cmdEnd_Click ()
- Dim ret As Long
- Dim rc As Integer
- If cmdEnd.Caption = "E&xit Test" Then
- Unload frmQuestion
- Unload Me
- End
- rc = MsgBox("This will end the test. Are you sure you would like to end the test.", 4 + 32, "Test Ending")
- If rc = 6 Then
- cmdEnd.Caption = "E&xit Test"
- Answers = True
- Call ShowReview
- frmQuestion.mskCorrect.Visible = True
- frmQuestion.lblCorrect.Visible = True
- frmQuestion.mskCorrect.Mask = ""
- frmQuestion.mskAnswer.Mask = ""
- ret& = SendMessage(frmQuestion.mskCorrect.hWnd, EM_SETREADONLY, True, 0&)
- ret& = SendMessage(frmQuestion.mskAnswer.hWnd, EM_SETREADONLY, True, 0&)
- Else
- MsgBox "The test will continue."
- frmQuestion.Data1.ReadOnly = True
- End If
- End If
- End Sub
- Sub cmdGoto_Click ()
- Dim bk As String
- Dim quote As String
- Dim MyCriteria As String
- quote = Chr$(34)
- bk = frmQuestion.Data1.Recordset.Bookmark
- frmQuestion.Data1.Recordset.MoveFirst
- MyCriteria = "QUid = " & Val(Trim(mskNo.ClipText))
- frmQuestion.Data1.Recordset.FindFirst MyCriteria
- If frmQuestion.Data1.Recordset.NoMatch Then
- MsgBox "That question number could not be found."
- frmQuestion.Data1.Recordset.Bookmark = bk
- frmQuestion.Show
- End If
- End Sub
- Sub cmdMark_Click ()
- frmQuestion.Data1.RecordSource = "Select * from testData where Mark = True"
- frmQuestion.Data1.Refresh
- frmQuestion.Show
- End Sub
-